package com.ITArmy.dao;

import com.ITArmy.beans.Type;
import org.apache.ibatis.annotations.Param;

import javax.print.DocFlavor;
import java.util.List;

public interface TypeMapper {
    int deleteByPrimaryKey(Long tId);

    //批量删除
    int deleteManyByIds(String[] ids);

    int insert(Type record);

    int insertSelective(Type record);

    Type selectByPrimaryKey(Long tId);

    int updateByPrimaryKeySelective(Type record);

    int updateByPrimaryKey(Type record);

    List<Type> selectByNameLike(@Param("name") String name);

    Type selectByName(@Param("name") String name);

    List<Type> selectAllType();
}